package com.neo.impatient.C13_Collection.C13_10_ReducingFoldingScanning

object ZipTest {


  def main(args: Array[String]): Unit = {
    val prices = List(5.0, 20.0, 9.95)
    val quantities = List(10, 2, 1)
    val pq =  prices zip quantities

    println(pq)

    println((prices zip quantities) map { p => p._1 * p._2 })

  }
}
